<template>
  <div>
    <div class="banner" @click="showdetailbannerImg">
       <div class="banner-wapper">
         <img src="//img1.qunarzz.com/sight/p0/1910/86/862069749e0faf54a3.water.jpg_600x330_8d333c15.jpg" class="banner-img">
          <div class="banner-title">
            <div class="banner-title-desc">九皇山(AAAA景区)</div>
            <div class="banner-title-imgNumber">
              <span class="iconfont banner-icon">&#xe674;</span>
              &nbsp;45
            </div>
          </div>
       </div>
    </div>
    <bannerimg :Bannerimg="Bannerimg" v-show="imgshow" @change="quitbannerImg" ></bannerimg>
  </div>
</template>
<script>
import bannerimg from 'commend/bannerImg.vue'
export default{
  name: 'detailBanner',
  data () {
    return {
      imgshow: false,
      Bannerimg: [
        {
          id: '0001',
          Url: 'http://img1.qunarzz.com/sight/p0/1408/21/faefcae736205c777abec0f34f379b3e.jpg_350x240_2bead693.jpg'
        },
        {
          id: '0002',
          Url: 'http://img1.qunarzz.com/sight/p0/1408/21/93b7e72d7e31e2a2c56a8a8b013de367.jpg_350x240_ab8014f1.jpg'
        },
        {
          id: '0003',
          Url: 'http://img1.qunarzz.com/sight/p0/1408/21/ef9307147e99548fcf911287042e9c73.jpg_350x240_03bb354d.jpg'
        }
      ]
    }
  },
  components: {
    bannerimg
  },
  methods: {
    showdetailbannerImg () {
      this.imgshow = true
    },
    quitbannerImg () {
      this.imgshow = false
    }
  }
}
</script>
<style lang="stylus" scoped>
  .banner
    position relative
    overflow hidden
    width 100%
    height 0
    padding-bottom 55%
    .banner-img
      width 100%
    .banner-title
      display flex
      position absolute
      left 0
      right 0
      bottom 0
      line-height .6rem
      color #FFFFFF
      background-image linear-gradient(top,rgba(0,0,0,0),rgba(0,0,0,0.5))
      .banner-title-desc
        flex 1
        padding .24rem
        font-size .36rem
      .banner-title-imgNumber
        margin-top .25rem
        padding .1rem
        height .4rem
        line-height .4rem
        border-radius .2rem
        background rgba(0,0,0,0.6)
        .banner-icon
          font-size .24rem
</style>
